<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>地图</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
    <meta name="apple-mobile-web-app-capable" content="no" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="format-detection" content="email=no" />
    <meta name="apple-mobile-web-app-status-bar-style" content="default">
    <!-- UC应用模式 --> <meta name="browsermode" content="application"> 
    <!-- QQ应用模式 --> <meta name="x5-page-mode" content="app">
     <link rel="stylesheet" href="../css/common/reset.css">

     <!-- <link rel="stylesheet" href="static/dateRangeCss.css"> -->
    <script src="../js/common/flexible.js"></script>
    <script src="../js/common/Storage.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=yvpANtIr6GTDUtHDgNKLCwjy"></script>

    <style type="text/css">
        body, html,#allmap {width: 100%;height: 100%;margin:0;font-family:"微软雅黑";font-size:14px;}
        #l-map{height:18rem;width:100%;}
        #r-result{width:100%;}
    </style>


  </head>
  <body>
    <div id="l-map"></div>
    <!-- <div id="r-result"></div> -->



 
  </body>  
      

</html>
<script type="text/javascript">
    var hotelName = _lSGet('hotelName');
    var longitude = _lSGet('longitude');
    var latitude = _lSGet('latitude');
    //alert(hotelName);
    // 百度地图API功能
    var sContent =hotelName;//显示的名字
    var map = new BMap.Map("l-map");
    var point = new BMap.Point(longitude, latitude);
    map.centerAndZoom(point, 15);
    var infoWindow = new BMap.InfoWindow(sContent);  // 创建信息窗口对象
    map.openInfoWindow(infoWindow,point); //开启信息窗口
    // document.getElementById("r-result").innerHTML = "信息窗口的内容是：<br />" + infoWindow.getContent();
</script>

